<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head th:replace="common/form :: head"></head>
	<body class="mainbody">
		<form method="GET" th:object="${obj}" enctype="multipart/form-data">
			<div th:replace="common/form :: location('商品管理',*{id} gt 0 ?'查看商品信息':'新增商品')"></div>
			<div id="floatHead" class="content-tab-wrap">
			  <div class="content-tab">
			    <div class="content-tab-ul-wrap">
			      <ul>
			        <li><a href="javascript:;">商品信息</a></li>
			      </ul>
			    </div>
			  </div>
			</div>
			<div class="tab-content">
				<dl th:if="*{id} == 0">
					<dt>商品编号</dt>
				    <dd>
				      <input type="text" th:field="*{no}" class="input normal" data-type="*4-100"/>
				      <span class="Validform_checktip">*账号至少4个字符</span>
				    </dd>
				</dl>
				<dl>
					<dt>商品名称</dt>
				    <dd>
				      <input type="text" th:field="*{name}" class="input normal" data-type="*2-10" />
				      <span class="Validform_checktip">*姓名至少2个字符</span>
				    </dd>
				</dl>
		
				<dl>
					<dt>价格</dt>
				    <dd>
				      <input type="text" th:field="*{price}" data-type="*2-10" class="input normal" />
				      <span class="Validform_checktip">*请填写商品价格</span>
				    </dd>
				</dl>
				<dl>
					<dt>重量</dt>
				    <dd>
				      <input type="text" th:field="*{weight}" data-type="*2-10" class="input normal" />
				      <span class="Validform_checktip">*请填写商品重量</span>
				    </dd>
				</dl>
				
				<dl>
					<dt>图片</dt>
					<dd>
						<img th:src="*{imgUrl}" width="100px" height="70px" />
					</dd>
				</dl>
				 
			</div>
			<div th:replace="common/form :: footer"></div>
		</form>

<!-- 	<form class="form-horizontal" id="form_table" action="#" th:action="@{/console/batchImport}" enctype="multipart/form-data" method="post"> -->
<!--   		<div th:replace="common/form :: location('商品管理',*{id} gt 0 ?'修改商品信息':'新增商品')"></div> -->  
<!-- 		<input class="form-input" type="file" name="excel"></input> -->
<!-- 		<br/> -->
<!-- 		<button type="submit" class="btn">开始导入</button> -->
<!-- 	</form> -->


		<script type="text/javascript" th:replace="common/form :: formscript"></script>
	</body>
</html>